﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZOVNP.Model.Abstracts;

namespace ZOVNP.WinView
{
    class OrderNode : TreeNode
    {
        private IOrder _order;
        public OrderNode(IOrder order)
        {
            Order = order;
        }

        public IOrder Order
        {
            get { return _order; }
            set
            {
                _order = value;
                Text = _order != null ? _order.ToString() : string.Empty;
            }
        }
    }
}
